package com.ts.mall.mallproduct.controller;

import com.ts.mall.mallproduct.entity.BrandEntity;
import com.ts.mall.mallproduct.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: tang
 * @Date: 2021/09/29/9:52
 * @Description:
 */
@RestController
public class TestContoller {
    @Autowired
    BrandService brandService;
    @RequestMapping("/test")
    public String test(){
        BrandEntity brandEntity=new BrandEntity();
        brandEntity.setDescript("");
        brandEntity.setName("华为");
        brandService.save(brandEntity);
        return "成功！";
    }
}
